﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace Lyx.Tools
{
    class SpriteSheet
    {
        List<Texture2D> listImages = new List<Texture2D>();

        public SpriteSheet(String _szPath, int _iNbImages, ContentManager _content)
        {
            for (int i = 0; i < _iNbImages; i++)
            {
                listImages.Add(_content.Load<Texture2D>(_szPath + "_" + i));
            }
        }

        public Texture2D GetImage(int _iIndex)
        {
            return listImages[_iIndex];
        }
    }
}
